using System;
using System.Collections.Generic;
using System.Text;

namespace LngT.Interfaces.UserAccess
    {
    public class DatabaseEditor
        {
        private IPrivileges _next;
        public DatabaseEditor( IPrivileges next )
            {
            _next = next;
            }

        public bool CanAddUsers()
            {
            if( _next != null )
                return _next.CanAddUsers();
            else
                return false;
            }

        public bool CanRemoveUsers()
            {
            if( _next != null )
                return _next.CanRemoveUsers();
            else
                return false;
            }

        public bool CanAddDatabases()
            {
            return true;
            }

        public bool CanRemoveDatabases()
            {
            return true;
            }

        public bool CanGetDatabaseList()
            {
            return true;
            }

        public bool CanGetUserList()
            {
            if( _next != null )
                return _next.CanGetUserList();
            else
                return false;
            }
        }
    }
